export const postConfig = (url,data)=>{
    let config = {
        url:url,
        method:"post",
        data: !!data?data:{}
    }
    return config;
}

export const getConfig = (url,data) =>{

    let config = {
        url:url,
        method:"get",
        params: !!data?data:{}
    }
    return config;
}